package net.ssta.util.bill.chargeobj;

import java.sql.Connection;
import java.sql.SQLException;

import net.ssta.core.db.DBConnectionProvider;
import net.ssta.core.db.Record;
import net.ssta.util.bill.UserBill;
import net.ssta.util.bill.UserBillException;
import net.ssta.util.bill.UserPoint;

public interface ChargeInterface {
	
	/**
	 * 根据扣费对象的主键，来判断其所需的费用
	 * @param chargeId
	 * @return
	 */
	public int calCostNumber()throws UserBillException;
	
	/**
	 * 根据账单来扣费
	 * @param bill
	 * @throws UserBillException
	 */
	public String getChargeType();
	
	public UserBill initBill(UserBill bill);	
}
